package com.jman.login.clients;

import com.jman.login.dto.UserWithToken;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("userservice")
public interface UserClients {
    @GetMapping("/user/{phone}")
    UserWithToken getUserByPhone(@PathVariable("phone") String phone);
}